export function config(data: any){
  data.sumConfig = [
    {
      prop: 'operatingFixedTotalIncome',
      label: '经营性固定资产',
      value: '',
      decimals: 2,
      unit: '亿元'
    },
    {
      prop: 'operatingFixedTotalIncome',
      label: '年度营收总额',
      value: '',
      decimals: 2,
      unit: '亿元'
    },
    {
      prop: 'operatingFixedNumber',
      label: '项目个数',
      value: '',
      decimals: 0,
      unit: '个'
    },
    {
      prop: 'operatingFixedBuildArea',
      label: '建筑总面积',
      value: '',
      decimals: 2,
      unit: '万㎡'
    },
    {
      prop: 'landArea',
      label: '土地面积',
      value: '',
      decimals: 2,
      unit: '万㎡'
    },
    {
      prop: 'underWayBuildArea',
      label: '在建项目面积',
      value: '',
      decimals: 2,
      unit: '万㎡'
    },
  ]
  data.assetCenterSumConfig = [
    {
      prop: 'operatingArea',
      label: '经营性资产',
      value: '',
      decimals: 2,
      unit: '万㎡'
    },
    {
      prop: 'landAssetArea',
      label: '土地资产',
      value: '',
      decimals: 2,
      unit: '万㎡'
    },
    {
      prop: 'buildingProjectArea',
      label: '在建项目',
      value: '',
      decimals: 2,
      unit: '万㎡'
    },
    {
      prop: 'nonOperatingNum',
      label: '固定资产',
      value: '',
      decimals: 0,
      unit: '个'
    },
  ]
  data.coreAssetCenterSumConfig = [
    {
      prop: 'officeNum',
      label: '办公',
      value: '',
      decimals: 0,
      unit: '个/70万㎡'
    },
    {
      prop: 'houseNum',
      label: '住宅',
      value: '',
      decimals: 0,
      unit: '个/70万㎡'
    },
    {
      prop: 'apartmentNum',
      label: '公寓',
      value: '',
      decimals: 0,
      unit: '个/30万㎡'
    },
    {
      prop: 'hotelNum',
      label: '酒店',
      value: '',
      decimals: 0,
      unit: '个/6万㎡'
    },
    {
      prop: 'carNum',
      label: '车辆',
      value: '',
      decimals: 0,
      unit: '个'
    },
    {
      prop: 'buildingProjectNum',
      label: '在建工程',
      value: '',
      decimals: 0,
      unit: '个'
    },
    {
      prop: 'storeNum',
      label: '商铺',
      value: '',
      decimals: 0,
      unit: '个/70万㎡'
    },
    {
      prop: 'landAssetNum',
      label: '土地',
      value: '',
      decimals: 0,
      unit: '宗/20万㎡'
    },
  ]
  data.projectInfoConfig = [
    {
      prop: 'yearRevenueAmount',
      label: '年营收总额：',
      formatter: (item: { yearRevenueAmount: number; yearRevenueAmountRate: number }) => {
        return `${ item.yearRevenueAmount && (item.yearRevenueAmount / 100000000).toFixed(0) || 0 }亿（同比增长：${ item.yearRevenueAmountRate || 0 }%）`
      }
    },
    {
      prop: 'landNum',
      label: '地块数量：',
      formatter: (item: { landNum: number; vacantNum: number }) => {
        return `${ item.landNum || 0 }（空置数量：${ item.vacantNum || 0 }）`
      }
    },
    {
      prop: 'operatingProjectNum',
      label: '经营项目：',
      formatter: (item: { operatingProjectNum: number }) => {
        return item.operatingProjectNum 
      }
    },
    {
      prop: 'rentedArea',
      label: '租赁面积：',
      formatter: (item: { rentedArea: number, yearRevenueAmountRate: number }) => {
        return `${ item.rentedArea && (item.rentedArea / 10000).toFixed(0) || 0 }万㎡（同比增长：${ item.yearRevenueAmountRate || 0 }%）`
      }
    },
  ]
}